package com.hhq.service.Impl;

import com.hhq.entity.Job;
import com.hhq.mapper.JobMapper;
import com.hhq.service.Jobservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JonserviceImpl implements Jobservice {
    @Autowired
    JobMapper jobMapper;
    @Override
    public List<Job> getAllJob() {
        return jobMapper.getAllJob();
    }

    @Override
    public List<Job> findJobByName(String name) {
        return jobMapper.findJobByName(name);
    }

    @Override
    public int addJob(Job job) {
        return jobMapper.addJob(job);
    }

    @Override
    public int updateJob(Job job) {
        return jobMapper.updateJob(job);
    }

    @Override
    public void deleteJob(String name) {
        jobMapper.deleteJob(name);
    }
}
